<!--
  @author heguanghua
  @since 2019/06/12 11:57
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{field:'productId', width:100, unresize:true, align:'center'}">产品ID</th>
        <th lay-data="{field:'productName', width:200, unresize:true, align:'center'}">后台产品名称</th>
        <th lay-data="{field:'servCategName', width:100, unresize:true, align:'center', hide:true}">服务分类</th>
        <th lay-data="{field:'categOneName', width:100, unresize:true, align:'center', hide:true}">一级分类</th>
        <th lay-data="{field:'categName', width:100, unresize:true, align:'center', hide:true}">二级分类</th>
        <th lay-data="{field:'itemName', width:120, unresize:true, align:'center'}">故障项目</th>
        <th lay-data="{field:'faultCategName', width:120, unresize:true, align:'center'}">故障类型</th>
        <th lay-data="{field:'priceStandard', unresize:true, align:'center'}">一口价</th>
        <th lay-data="{field:'priceSplit', unresize:true, align:'center'}">区分明细</th>
        <th lay-data="{field:'trafficFee', unresize:true, align:'center'}">交通费</th>
        <th lay-data="{field:'hourFee', unresize:true, align:'center'}">工时费</th>
        <th lay-data="{field:'servicePrice', unresize:true, align:'center'}">技术服务费</th>
        <th lay-data="{field:'partPrice', unresize:true, align:'center'}">配件包干费</th>
        <th lay-data="{field:'internalSettlementPrice', unresize:true, align:'center'}">内部结算价</th>
        <th lay-data="{field:'externalSettlementPrice', unresize:true, align:'center'}">外部结算价</th>
        <th lay-data="{field:'price', unresize:true, align:'center'}">销售价</th>
        <th lay-data="{field:'cityName', unresize:true, align:'center'}">城市</th>
        <th lay-data="{field:'cityPrice', unresize:true, align:'center'}">城市价格</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="item:${items}">
        <td th:text="${item.productId}"></td>
        <td th:text="${item.productName}"></td>
        <td th:text="${item.servCategName}"></td>
        <td th:text="${item.categOneName}"></td>
        <td th:text="${item.categName}"></td>
        <td th:text="${item.itemName}"></td>
        <td th:text="${item.faultCategName}"></td>
        <td th:text="${item.priceStandard == 2 ? '是' : '否'}"></td>
        <td th:text="${item.priceSplit == 2 ? '区分' : '不区分'}"></td>
        <td th:text="${#numberUtil.convertMoneyToYuan2(item.trafficFee)}"></td>
        <td th:text="${#numberUtil.convertMoneyToYuan2(item.hourFee)}"></td>
        <td th:text="${#numberUtil.convertMoneyToYuan2(item.servicePrice)}"></td>
        <td th:text="${#numberUtil.convertMoneyToYuan2(item.partPrice)}"></td>
        <td th:text="${#numberUtil.convertMoneyToYuan2(item.internalSettlementPrice)}"></td>
        <td th:text="${#numberUtil.convertMoneyToYuan2(item.externalSettlementPrice)}"></td>
        <td th:text="${#numberUtil.convertMoneyToYuan2(item.price)}"></td>
        <td th:text="${item.cityName}"></td>
        <td th:text="${#numberUtil.convertMoneyToYuan2(item.cityPrice)}"></td>
    </tr>
    </tbody>
</table>
